package seu.evaluation.metric;


/**
 * 
 * @author samantha
 * 针对每个组件，度量耦合度
 *
 */

public class CouplingCBO extends MaintainabilityMetricStrategy{
	
	public CouplingCBO(){}

	@Override
	protected String getType() {
		return "CouplingCBO";
	}

	@Override
	protected double differentMetricMethod(MaintainabilityEntity entity) {
		return ( entity.getE()+entity.getX()+entity.getW()+entity.getR() ) / (double) this.umlDiagramInfo.getN();
	}

	@Override
	protected void preprocess() {}
}
